import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from './components/TypeNav'

//element-ui注册
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './styles/reset.css'
import './styles/iconfont/iconfont.css'
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  preLoad: 1.3, //加载窗口可视区的130%
  error: '/images/error.jpeg', //失败时 所显示的图片
  loading: '/images/loading.gif', //图片加载中 所显示的图片
  attempt: 1, //尝试计数
})
Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.component('TypeNav', TypeNav)

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
